<%-- 
    Document   : searchResults.jsp
    Created on : 09/11/2010
    Author     : thau@google.com
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@page contentType="text/html" import="java.util.*" %>
<%@page contentType="text/html" import="br.org.imazon.sad.*" %>

<html>
    <head>
 <title>Authentication Page</title>
		
        
    </head>
    <body>
    
    <%
       
      String success = Authenticate.auth(session,"gestalt");
      
    %>  
    
  <h2>Earth Engine ClientLogin Authentication Console</h2>
    <p>Use this console to securely configure your application's Google Earth
    Engine ClientLogin credentials.</p>
    <% if (session.getAttribute("emailgestalt") != null) { %>
      <p>Your application currently has credentials associated with the account
      <b><%= session.getAttribute("emailgestalt") %></b>.</p>
    
    <% } else { %>
    

      <p><b>Your application is not yet configured with any credentials.</b></p>
  
    <p>To configure your credentials, enter your application's Google account information.</p>
    <form method="post" action="/auth">
      <div>Email: <input type="text" name="email" /></div>
      <div>Password: <input type="password" name="password" /></div>
      <input type="hidden" name="services" value="gestalt,fusiontables"/>
      <div><input type="submit" value="Authenticate"></div>
      </form>
    <% } %>
    
</body>
</html>
